<nav>
  <%= tabs_tag(:namespace => :sub_nav, :open_tabs => {}, :builder => MenuTabBuilder) do |tab| %>
		<%= tab.activities '<i class="fa fa-lg fa-fw fa-cutlery"></i> <span class="menu-item-parent"> 操作日志</span>'.html_safe, admin_activities_path if current_admin.can?(controller: "admin/activities") %>
		<%= tab.api_visit_logs '<i class="fa fa-lg fa-fw fa-file-text-o"></i> <span class="menu-item-parent"> API访问日志</span>'.html_safe, admin_api_visit_logs_path if current_admin.can?(controller: "admin/api_visit_logs") %>
		<%= tab.client_logs '<i class="fa fa-lg fa-fw fa-floppy-o"></i> <span class="menu-item-parent"> 客户端日志</span>'.html_safe, admin_client_logs_path if current_admin.can?(controller: "client_logs") %>
		<%= tab.tables '<i class="fa fa-lg fa-fw fa-table"></i> <span class="menu-item-parent"> 数据库</span>'.html_safe, admin_tables_path if current_admin.can?(controller: "admin/tables") %>
		<%= tab.versions '<i class="fa fa-lg fa-fw fa-flag"></i> <span class="menu-item-parent"> 版本更新日志</span>'.html_safe, admin_versions_path if current_admin.can?(controller: "admin/versions") %>
	<% end %>
</nav>